﻿using System;
using System.Collections;
using System.Collections.Generic;
using SmartSiteManagementSystem.Models.Enums;


namespace SmartSiteManagementSystem.Models.DTO
{
    [Serializable]
    public class SSMSApiResult
    {

        /// <summary>
        /// 状态码
        /// </summary>
        private StateCodeEnum code = StateCodeEnum.Ok;
        public StateCodeEnum Code
        {
            get { return code; }
            set { code = value; }
        }

        /// <summary>
        /// 提示消息
        /// </summary>
        private string msg = "";
        public string Msg
        {
            get { return msg; }
            set { msg = value; }
        }
    }

    [Serializable]
    public class SSMSApiResult<T> : SSMSApiResult
    {
        /// <summary>
        /// 返回结果
        /// </summary>
        private T data;
        public T Data
        {
            get { return data; }
            set { data = value; }
        }
    }

}